Other Classes
The following classes are available globally.
-
Represents a UTC time
Implements NSCoding for easy conversion to Data using NSKeyedArchiver/NSKeyedUnarchiver. This is helpful if you need to store in persistent storage like UserDefaults.
See more
-
Example class that conforms to
See moreGIFAnimatable
. Uses default values for the animator frame buffer count and resize behavior. You can either use it directly in your code or use it as a blueprint for your own subclass.
-
A configuration object that defines the properties for a
See moreContentSession
-
The entry point for all interaction with the EngagementSDK.
Important
Concurrent instances of the EngagementSDK is not supported; Only one instance should exist at any time.
-
Methods for managing a Leaderboard
See more
-
A generic result type that can be used when parsing paginated results from backend
See more
-
Methods for managing a User’s profile.
See more
-
The
See morePassthroughView
is a UIView that is able to pass user interactions into the UIView below it in a multilayered UIView scenario.
-
A Widget state controller based on a common interactive timeline use-case
See more
-
A class encapsulating data and functionality of every LiveLike Widget
See more
-
A model containing the data and methods for a Text Ask Widget
See more
-
A set of flags that modify the behavior of Widgets
See more
-
WidgetOption is a class which represents an option a widget can have
See more
-
An object that reflects the state of a Social Embed widget on the server
See more
-
A Widget state controller based on a common timeline use-case
See more
-
A model containing the data and methods for a Video Alert Widget
See more
-
A presentation mode for Widgets
Widgets in this mode will appear in a vertical list sorted by the time the Widget is created (descending).
Default widgets in this mode are indefinitely interactive with a few exceptions. Quiz and Image Slider widgets will become non-interactive after the user has locked in their vote. Prediction Widgets will become non-interactive after the Prediction Follow Up has been published.
You can configure which and how widgets are displayed by overriding:
- didLoadInitialWidgets
- didLoadMoreWidgets
- didReceiveNewWidget
- makeWidget
-
A
WidgetPopupViewController
instance represents a view controller that handles widgets for theEngagementSDK
.Once an instance of
WidgetPopupViewController
has been created, aContentSession
object needs to be set to link theWidgetPopupViewController
with the program/CMS. The ‘ContentSession’ can be changed at any time.The
WidgetPopupViewController
can be presented as-is or placed inside aUIView
as a child UIViewController. See Apple Documentation for more information.If the
WidgetPopupViewController
is placed inside another view, please take note of the minimum size restrictions. This restriction can be ignored by settingignoreSizeRestrictions
.Also, an extension was included for convenience to help add a view controller inside of a specificied view. Please see
See moreUIViewController.addChild(viewController:view:)
for more information
-
A presentation mode for Widgets
Widgets in this mode will appear in a vertical list sorted by the time the Widget is created (descending).
On load, published widgets will be loaded from history and, by default, display results, and be non-interactive. New widgets will appear at the top of the list and be interactive until the timer expires.
You can configure which and how widgets are displayed by overriding:
- didLoadInitialWidgets
- didLoadMoreWidgets
- didReceiveNewWidget
- makeWidget